/**
 * 
 * Copyright (C) 2011 Cody Stoutenburg . All rights reserved.
 *
 *       This program is free software; you can redistribute it and/or
 *       modify it under the terms of the GNU Lesser General Public License
 *       as published by the Free Software Foundation; either version 2.1
 *       of the License, or (at your option) any later version.
 *
 *       This program is distributed in the hope that it will be useful,
 *       but WITHOUT ANY WARRANTY; without even the implied warranty of
 *       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *       GNU Lesser General Public License for more details.
 *
 *       You should have received a copy of the GNU Lesser General Public License
 *       along with this program; if not, write to the Free Software
 *       Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. 
 * 
 */
package net.alteiar.plateform.game.view.sprite;

import java.awt.Graphics;

/**
 * @author Cody Stoutenburg
 * 
 */
public interface Sprite {

	/**
	 * Get the width of the drawn sprites
	 * 
	 * @return The width in pixels of this sprites
	 */
	public int getWidth();

	/**
	 * Get the height of the drawn sprites
	 * 
	 * @return The height in pixels of this sprites
	 */
	public int getHeight();

	/**
	 * Draw the sprites onto the graphics context provided
	 * 
	 * @param g
	 *            The graphics context on which to draw the sprites
	 * @param x
	 *            The x location at which to draw the sprites
	 * @param y
	 *            The y location at which to draw the sprites
	 */
	public void draw(Graphics g, int x, int y, long frameInMs, Double speed);
}
